import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
// import Home from "../components/Home";
// import Product from "../components/Product";
import Login from '../components/Login'

//解决vue-router 3.0以上 重复路由报错的问题
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path:'/Home',
    //   component: Home
    // },
    // {
    //   path:'/Product/:id', //设参
    //   component:Product
    // }
	{
	  	path:'/',
	  	component: Login
	}
  ]
})